#ifndef CBEAM_H
#define CBEAM_H

#include "CNode.h"
#include "parameters.h"
#include "CMatrix.h"

class CBeam
{
    public:
        CBeam(CNode *n1, CNode *n2);
        virtual ~CBeam();
        void setProperties(double vE, double vA, double vJY, double vJZ, double vGJ);
        void createStiffnessMatrix();
        CNode* getNode(int n);
        CMatrix* getStiffnessMatrix();
    protected:
    private:
        CNode *nodes[2];
        double E;
        double A;
        double JY;
        double JZ;
        double GJ;
        double length;
        CMatrix *K;

};

#endif // CBEAM_H
